#ifndef _LOG_H_
#define _LOG_H_

#include<iostream>
#include<ctime>

#define Debug 0
#define Notice 1
#define Error 2
#define Warming 3

std::string mes[] ={
    "Debug",
    "Notice",
    "Error",
    "Warning"
};

std::ostream& Log(std::string buff, int level)
{
    //std::cout << " | " << (int)time(nullptr) << " | " << mes[level] << " : " << buff << std::endl;
    std::cout << " | " << (unsigned)time(nullptr) << " | " << mes[level] << " : " << buff << std::endl;     //time的类型可转为无符号整型，因为其不可能是负数
    return std::cout;
}


#endif